package com.shangxian.giveithome.service;

import com.shangxian.giveithome.entity.PageableDetails;
import com.shangxian.giveithome.entity.community.Comment;
import com.shangxian.giveithome.entity.community.NoticeCenter;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public interface CommentService {

    PageableDetails findCommentList(Long id, Pageable pageable);

    void addComment(Comment comment, HttpServletRequest request);

    void deleteCommentById(Long id);

    void readComment(Long id);

    void readAllComment(HttpServletRequest request);

    NoticeCenter findNewestComment(HttpServletRequest request);
}
